<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>My JSP 'IndustryManager.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/biaoge.css"/>
	<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css"/>
	  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
	 <script type="text/javascript" src="jquery/js/jquery-1.8.2.js"></script> 
	 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
     <script type="text/javascript" src="fancybox/jquery.easing-1.3.pack.js"></script> 
	<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.js"></script> 
	<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script> 
	<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script> 
     <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
     <script type="text/javascript" src="<%=basePath%>/My97DatePicker/WdatePicker.js"></script>
     <script type="text/javascript" src="<%=basePath%>js/LodopFuncs.js"></script>
  <style type="text/css">
    .td{text-align: center;}
    *{padding:0;margin:0}
p{line-height:28px}

.go{width:47px;height:100px;background-color:#FFF;position:fixed;_position:absolute;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||200)-(parseInt(this.currentStyle.marginBottom,10)||0)));left:12px;bottom:25%;border-radius:5px;box-shadow:0 0 2px #6E6E6E}
.go a{background:url(images/a.gif) no-repeat;display:block;text-indent:999em;width:112px;margin:5px;border:0;overflow:hidden;float:left}
.go .top{background-position:-4px -42px;height:23px;width:37px;}
.go .refresh{background-position:-38px -42px;height:23px;width:37px;}
.go .bottom{background-position:-72px -42px;height:22px;width:37px;}
.go .top:hover{background-position:-4px -3px}
.go .refresh:hover{background-position:-38px -3px}
.go .bottom:hover{background-position:-72px -3px}

.productionState{
color: red;
}
.productionState1{
color: red;
}
.productionState2{
color: blue;
}
.productionState3{
color: green;
}
  </style>
  </head>
  <script type="text/javascript">

  window.onbeforeunload = function () {
            var scrollPos;
            if (typeof window.pageYOffset != 'undefined') {
                scrollPos = window.pageYOffset;
            }
            else if (typeof document.compatMode != 'undefined' &&
            document.compatMode != 'BackCompat') {
                scrollPos = document.documentElement.scrollTop;
            }
            else if (typeof document.body != 'undefined') {
                scrollPos = document.body.scrollTop;
            }
            document.cookie = "scrollTop=" + scrollPos; //存储滚动条位置到cookies中

        }
        window.onload = function () {
            if (document.cookie.match(/scrollTop=([^;]+)(;|$)/) != null) {
                var arr = document.cookie.match(/scrollTop=([^;]+)(;|$)/); //cookies中不为空，则读取滚动条位置
                document.documentElement.scrollTop = parseInt(arr[1]);
                document.body.scrollTop = parseInt(arr[1]);
                        }
        } 
  function updateProductionState(orderId){
    var newState = $("#selPs"+orderId).val();
    var oldState = $("#hps"+orderId).val();
     var r=confirm("是否更改？");
	if (r==true)
	  {
	  $.post("checkProductionState",{"orderId":orderId},function(data){
	  if(data.ps==null||data.ps==1){
	  $.post("updateProductionState",
	    {"orderId":orderId,"productionState":newState},function(data){
	    alert(data.msg);
	    var html = "";
	    if(newState==1){
	      html="未制作";
	    }
	    if(newState==2){
	      html="制作中";
	    }
	    if(newState==3){
	      html="已完成";
	    }
	    $("#ps"+orderId).html(html);
	    $("#ps"+orderId).attr("class","productionState"+newState);
	    $("#hps"+orderId).val(newState);
	  });
	  }else{
	    if(data.ps==2){
	       alert("该订单已经在制作中！");
	       $("#"+orderId+"_"+oldState).attr("selected","selected");
	    }
	    if(data.ps==3){
	       alert("该订单已经完成！");
	       $("#"+orderId+"_"+oldState).attr("selected","selected");
	    }
       
	  }
	  });
	  }
	else
	  {
	  $("#"+orderId+"_"+oldState).attr("selected","selected");
	  }
	     
  }
  
   function fangda(tupian){
   $("#"+tupian+"k").fancybox();
  }
  
  function riqichaxun(){
  var datetime=$("#riqi").val();
  var yonghu=$("#uname").val();
  var sele=$("#sele").val();
  var indusid=$("#indusid").val();
   window.location="selecteveryindusByMany?indusid="+indusid+"&&datetime="+datetime+"&&uname="+yonghu+"&&orderstate="+sele;
  }
  
  $(document).ready(function() {
		$("#dio").dialog({
			autoOpen : false,
			module : true,
			/* buttons : {
				确定 : function() {
				    // alert("aaa");
					$(this).dialog("close");
					
					}
			},  */
			closeOnEscape : true,//点击键盘ESC键关闭dialog
			hide : "fadeout",//关闭特效
			modal : true,//蒙层（弹出会影响页面大小）
			title : "说明理由",
			overlay : {//覆盖层
				opacity : 0.5,//不透明度
				background : "black",
				overflow : 'auto'//内容溢出元素框事件
			}
		});
		$("#sync").dialog({
			autoOpen : false,
			module : true,
			/* buttons : {
				确定 : function() {
				    // alert("aaa");
					$(this).dialog("close");
					
					}
			},  */
			closeOnEscape : true,//点击键盘ESC键关闭dialog
			hide : "fadeout",//关闭特效
			modal : true,//蒙层（弹出会影响页面大小）
			title : "说明理由",
			overlay : {//覆盖层
				opacity : 0.5,//不透明度
				background : "black",
				overflow : 'auto'//内容溢出元素框事件
			}
		});
	});
    $().ready(function(){
      $.post("getAllProduct",function(data){
         var html = "";
         $.each(data.products,function(i,v){
            var option = "<option value='"+v.alias+"' >"+v.productName+"</option>";
            html = html+option;
         });
         $("#productName").append(html);
      });
    });
	 $(document).ready(function() {
		$("#fandio").dialog({
			autoOpen : false,
			module : true,
			/* buttons : {
				确定 : function() {
				    // alert("aaa");
					$(this).dialog("close");
					
					}
			},  */
			closeOnEscape : true,//点击键盘ESC键关闭dialog
			hide : "fadeout",//关闭特效
			modal : true,//蒙层（弹出会影响页面大小）
			title : "说明理由",
			overlay : {//覆盖层
				opacity : 0.5,//不透明度
				background : "black",
				overflow : 'auto'//内容溢出元素框事件
			}
		});
	});
	function dakai(id) {
	   var k=document.createElement("input");
	       k.type="hidden";
           k.id="order";
	       k.value=id;
	 document.getElementById("dio").appendChild(k);
		$("#dio").dialog("open");
		  
	}
	
  function fandakai(id) {
	   var k=document.createElement("input");
	       k.type="hidden";
           k.id="fanorder";
	       k.value=id;
	 document.getElementById("fandio").appendChild(k);
		$("#fandio").dialog("open");
		  
	}
	
   function gaibian(){
   var you=$.trim($("#liyou").val());
   if(you!=""&&you!=null)
    document.getElementById("queding").disabled=false;
   else
   document.getElementById("queding").disabled=true;
   }
   
    function gaianniu(){
   var you=$.trim($("#yuanyin").val());
   if(you!=""&&you!=null)
    document.getElementById("que").disabled=false;
   else
   document.getElementById("que").disabled=true;
   }
   
   function quehuo(){
   
  var you=$.trim($("#liyou").val());
  var id=$("#order").val();
  $("#order").remove();
       $.post(
       "stockoutReason",
       {orderid:id,liyou:you},
       function(data){
        document.getElementById("liyou").value="";
        alert("缺货理由已经提交");
        $("#dio").dialog("close");
       },"json"
       );
   }
   
    function updateordertstate(id){
    if(false){
      
    }else{
			$("#ordernumberdiv").dialog({
				 resizable:false,
		   	  	autoOpen:true,
		         module : true,
		         width:400,
		         height:300,
		         title: "填写单号",
		         open:function(){
		         },
		         close: function(event, ui){
		         	
		         },
		         buttons:{
		       	  '提交' :function(){
		       		 	$.post("updateOrderstate.action",{"orderid":id,"out_sid":$("#ordernumbertext").val(),"company_code":$("#company_code").val()}, function(data){
			      		 		if(data.msg=='success'){
			      		 		var k="<font color='blue' size='3'>已发货</font>";
			      		 		$("#"+id+"os").html(k);
			      		 		$("#"+id+"ordernumber").html($("#ordernumbertext").val());
			      		 		$("#"+id+"fahuobutton").attr("disabled", "disabled");
			      		 		$("#"+id+"quehuobutton").attr("disabled", "disabled");
			      		 		$("#ordernumberdiv").dialog('close');
			      		 			alert("发货成功");
			      		 		$("div[abc='d"+id+"']").css("display","none");
			      		 		}else{
			      		 			alert(data.msg);
			      		 			$("#ordernumberdiv").dialog('close');
			      		 		}
			      			}
	      				);
		       	  },
		       	  '打印' :function(){
	      				var code = $("#company_code").val();
	      				print(id,code);
		       	  },
		       	  '取消':function(){
		       		  $(this).dialog('close');
		       	  }
		         },
			 });
    }
    }
    
    function fankui(){
       var you=$.trim($("#yuanyin").val());
       var id=$("#fanorder").val();
       $("#fanorder").remove();
       $.post(
       "feedbackReason.action",
       {orderid:id,yuanyin:you},
       function(data){
        document.getElementById("yuanyin").value="";
        alert("反馈理由已经提交");
        $("#fandio").dialog("close");
       },"json"
       );
    }
    
   function xiazai(name,id){

     var orid=id+"m";
    var url=document.getElementById(orid).value;
    var arr=url.split("\\");
    window.location="downloadCDR?username="+name+"&&fileName="+arr[arr.length-1]; 
  }
  function download(path,orderId){
  $.post("fileJson",{"fileName":path},function(data){
    if(data.message=='success'){
  	  window.location="downloadCDR?fileName="+path+"&&orderId="+orderId;
    }else{
      alert(data.message);
    }
  });
    
  }
  function syncOrders(){
  $("#fancybox-overlay").css("display","block");
 	$("#loading_img").css("display","block");
      $.post("syncOrders",{"startTime":$("#start").val(),"day":$("#day").val()},function(data){
          alert("更新了"+data.num+"条数据");
           $("#fancybox-overlay").css("display","none");
 			$("#loading_img").css("display","none");
      });
   }
   var LODOP;
   function print(id,companyCode){
   var l = /label/;
   LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));  
   $.post("getPrintInfo",{"company_code":companyCode},function(data){
     var jsonStr = data.pi.content;
     var json =  JSON.parse(jsonStr);
     $("#EMS").css("background-image","url("+data.pi.picUrl+")");
   var str = "";
     $("#EMS").dialog({
				 resizable:false,
		   	  	autoOpen:true,
		         module : true,
		         width:750,
		         height:650,
		         title: "打印单号",
		         open:function(){
		         	var html = "";
		         	for (var one in json)
				    {
				        str = str+one+":"+json[one][0];
				        var top = json[one][0];
				        var left = json[one][1];
				        var width = json[one][2];
				        var height = json[one][3];
				        
				          if(!l.test(one)){
				          html =html+ "<p style=position:absolute;left:"+left+"px;top:"+top+"px;width:"+width+"px;height:"+height+"px; >"+$("#"+one+id).html()+"</p>";
				        }else{
				          html = html+"<textarea style=position:absolute;left:"+left+"px;top:"+top+"px;width:"+width+"px;height:"+height+"px; id="+one+id+" ></textarea>";
				        }
				    }
				    
				    $("#EMS").html(html);
		         },
		         close: function(event, ui){
		         	
		         },
		         buttons:{
		       	  '打印' :function(){
	      				var html = "";
				LODOP.PRINT_INITA(data.pi.width,data.pi.height,800,600,"套打快递模板");
		         	for (var one in json)
				    {
				        str = str+one+":"+json[one][0];
				        var top = json[one][0];
				        var left = json[one][1];
				        var width = json[one][2];
				        var height = json[one][3];
                            if(!l.test(one)){           
				        LODOP.ADD_PRINT_TEXT(top,left,width,height,$("#"+one+id).html());  
				       }else{
				          LODOP.ADD_PRINT_TEXT(top,left,width,height,$("#"+one+id).val());  
				       }
				        LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
				         
				    }
				    LODOP.PREVIEW();
				     $(this).dialog('close');
		       	  },
		       	  '取消':function(){
		       		  $(this).dialog('close');
		       	  }
		         },
			 });
   });
   
   }
   
  </script>
  <body>
  <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
	<embed id="LODOP_EM" TYPE="application/x-print-lodop" width=0 height=0 PLUGINSPAGE="install_lodop32.exe"></embed>
</object> 
    <div style="display:none;position:absolute;z-index:2000;left: 673px;top: 300px;background-color: white;text-align: center;" id="loading_img">
     <img src="img/022.gif" /><br/>
     同步数据中。。。
		</div>
	<div id="fancybox-overlay"
		style="background-color: rgb(119, 119, 119); height: 1823px; 
		opacity: 0.7; cursor: pointer; display: none; "
		></div>     
 <a name="gotop">&nbsp;</a>
         <div  style="margin-top:20px">
       <div align="center">
		<form action="selectindusOrderById?page=1" method="post">
			<table>
				<tr>
					<td colspan="2" align="center">
						订单查询：
					</td>
				</tr>
				<tr>
					<td>
						选择时间：
					</td>
					<td>
						<input type="text" id="time1"  name="startTime"
						class="Wdate" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'time2\')||\'2020-10-01\'}'})"/>
						至<input type="text" id="time2" name="endTime"
						class="Wdate" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'time1\')}',maxDate:'2020-10-01'})"/>
					</td>
				</tr>
				<tr>
					<td>
						用户名：
					</td>
					<td>
						<input type="text" name="uname" id="orderid">
					</td>
				</tr>
				<tr>
					<td>
						交易编号：
					</td>
					<td>
						<input type="text" name="orderId" id="orderId">
					</td>
				</tr>
				
				<tr>
					<td>
						订单状态：
					</td>
					<td>
					
						<select name="orderstate">
						  <option value="-1" >全部</option>
						  <option value="0" ${orderstate=='0'?'selected':''}>买家申请退款</option>
						  <option value="1" ${orderstate=='1'?'selected':''}>未发货</option>
						  <option value="2" ${orderstate=='2'?'selected':''}>已发货</option>
						  <option value="3" ${orderstate=='3'?'selected':''}>交易成功</option>
						  <option value="4" ${orderstate=='4'?'selected':''}>交易关闭</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						产品名称：
					</td>
					<td>
						<select name="alias" id="productName">
						  <option value="" >全部</option>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="查询">
						<input type="reset" value="清空"/>
					</td>
					<td colspan="2" align="center">
					  
						<input type="button" value="同步数据" onclick="syncOrders()">
						开始时间：<input type="text" id="start" value="${startTime }" 
						class="Wdate" onFocus="WdatePicker()"/>
						同步天数：
						<select id="day">
						<option value="1">1天</option>
						<option value="2">2天</option>
						<option value="3">3天</option>
						<option value="4">4天</option>
						</select>
					</td>
				</tr>
			</table>
			</form>
		</div>
       </div>
       
       <input type="hidden" value="${mana.industryId}" name="indusId" id="indusid">
       <div>
       <font size="5" color="red">今天的订单如下</font> <br/><br/>
       <table id="mytable" cellspacing="3">
     <tr>
      <td>交易编号</td><td>订单图片</td><td>订单名称</td><td>下单时间</td> <td>定制数量及价格</td><td>用户地址</td><td>收件人名称</td><td> 用户电话</td><td>快递编号</td><td>订单状态</td><td>下载CDR文件</td><td>是否能够发货</td></tr>
       <c:forEach items="${trades}" var="trade" varStatus="ts">
       <c:forEach items="${trade.orders}" var="order" varStatus="os">
       <c:if test="${!empty order.userName}">
       <tr class="td" style="background: ${ts.index%2==0?'#FF9':'white' }">
       <c:if test="${os.index==0}">
      <td rowspan="${trade.count*2 }">${order.tradeId }</td>
      </c:if>
      
     <td>
     <c:choose>
     <c:when test="${fn:startsWith(order.orderPic,'描述')}">
     ${order.orderPic }
     </c:when>
     <c:otherwise>
     <img src="${order.orderPic}" style="height:76px;width:100px""/>
  	 <a id="${order.orderId}k" href="${order.orderPic}"><img src="img/fangda.gif" onclick="fangda('${order.orderId}')" style="float: right;"></a>
     </c:otherwise>
     </c:choose>
     </td>
     <td theme="theme${order.tradeId}">${order.orderTheme}</td><td><fmt:formatDate value="${order.orderTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td><td count="count${order.tradeId}">${order.orderProductsCount}（${order.orderTotalPrice}元）</td>
     <c:if test="${os.index==0}">
       <td width="190px" rowspan="${trade.count*2 }" id="orderAddress${order.tradeId}">${order.orderAddress_bak}
       </td><td rowspan="${trade.count*2-1 }" id="orderName${order.tradeId}">${order.orderName}</td><td rowspan="${trade.count*2-1 }" id="orderPhone${order.tradeId }">${order.orderMobilePhone}&nbsp;&nbsp;${order.receiveTelephone}</td>
       </c:if>
        <c:if test="${os.index==0}">
       <td id="${order.tradeId}ordernumber" rowspan="${trade.count*2-1 }" >${order.orderFreight}----</td>
    <c:choose>
       <c:when test="${order.orderState==0}">
	   			<td id="${order.tradeId}os" rowspan="${trade.count*2-1 }"><font size="3" color="grey">买家申请退款</font></td>
	   </c:when>
	    <c:when test="${order.orderState==1}">
	   			<td id="${order.tradeId}os" rowspan="${trade.count*2-1 }"><font size="3" color="red">未发货</font></td>
	   </c:when>
	   <c:when test="${order.orderState==2}">
	    	<td id="${order.tradeId}os" rowspan="${trade.count*2-1 }"><font size="3" color="blue" >已发货</font></td>
	   </c:when>
	   <c:when test="${order.orderState==3}">
	    	<td id="${order.tradeId}os" rowspan="${trade.count*2-1 }"><font size="3" color="green">交易成功</font></td>
	   </c:when>
	    <c:when test="${order.orderState==4}">
	    	<td id="${order.tradeId}os" rowspan="${trade.count*2-1 }"><font size="3" color="grey">交易关闭</font></td>
	   </c:when>
	   <c:otherwise>
	       <td><font size="3" color="blue">其他</font></td>
	   </c:otherwise>
   </c:choose>
    </c:if>
    <c:if test="${!empty order.CDRurl}">
    <td rowspan="${os.index!=trade.count-1?2:1 }"><input type="button" value="下载" onclick="download('${order.CDRurl}',${order.orderId })"></td>
    </c:if>
     <c:if test="${empty order.CDRurl}">
                  <td rowspan="${os.index!=trade.count-1?2:1 }"> 没有CDR文件</td>
     </c:if>
       <c:if test="${os.index==0}">
     <c:if test="${order.orderState==1}">
    		<td rowspan="${trade.count*2 }" id="td${trade.tradeId }">
	    		<input type="button" value="发货" onclick="updateordertstate('${order.tradeId}','${order.backPicId }')" id="${order.tradeId}fahuobutton">
	    		<input type="button" value="缺货" onclick="dakai('${order.tradeId}')" id="${order.tradeId}quehuobutton"><br/>
	    		${trade.price}元（邮费：${order.postfee }元）
    		</td>
      </c:if>
      <c:if test="${order.orderState!=1}">
    		<td rowspan="${trade.count*2 }" id="td${trade.tradeId }">
	    		<input disabled="disabled" type="button" value="发货" onclick="updateordertstate('${order.tradeId}')" id="${order.tradeId}fahuobutton">
	    		<input disabled="disabled" type="button" value="缺货" onclick="dakai('${order.tradeId}')" id="${order.tradeId}quehuobutton"><br/>
    		${trade.price}元（邮费：${order.postfee }元）
    		</td>
      </c:if>
      </c:if>
      
    </tr>
       
       <input type="hidden" id="${order.orderId}m" value="${order.CDRurl}"/>
       <tr id="${trade.tradeId }" style="background:${ts.index%2==0?'#FF9':'white' }">
       <td colspan="4" style="background:${ts.index%2==0?'#FF9':'white' }">
       <c:forEach items="${order.labelCosts}" var="mapli">
       <c:if test="${mapli.price!=null}">
      ${mapli.labelcostName}:${mapli.price}&nbsp;&nbsp;&nbsp;&nbsp;
      </c:if>
      </c:forEach>
       <input type="button" value="反馈" onclick="fandakai('${order.orderId}')">
       <p style="display:none;" id="sender${order.tradeId }">网贝公司</p>
    		<p style="display:none;" id="mailAddress${order.tradeId }">收到此邮包的人，是最幸福的人!</p>
    		<p style="display:none;" id="senderPhone${order.tradeId }">15968850022</p>
    		<p style="display:none;" id="senderCity${order.tradeId }">浙江</p>
    		<p style="display:none;" id="senderProvince${order.tradeId }">杭州</p>
    		<p style="display:none;" id="orderProvince${order.tradeId }">${fn:replace(order.orderProvince, "省", "")}</p>
    		<p style="display:none;" id="orderCity${order.tradeId }">${fn:replace(order.orderCity,"市","")}</p>
    		<p style="display:none;" id="orderAddress2${order.tradeId }">${order.orderAddress}</p>
    		
       <c:set value="${order.productionState==null?1:order.productionState}" var="productionState"></c:set>
       <c:if test="${order.orderState==1}">
     <div abc="d${order.tradeId }">
         制作状态：
         <select id="selPs${order.orderId }" onchange="updateProductionState(${order.orderId})">
           <option value="1" id="${order.orderId }_1"  ${order.productionState==1?'selected':''}>未制作</option>
           <option value="2" id="${order.orderId }_2"  ${order.productionState==2?'selected':''}>制作中</option>
           <option value="3" id="${order.orderId }_3"  ${order.productionState==3?'selected':''}>已完成</option>
         </select>
         <input type="hidden" value="${productionState }" id="hps${order.orderId }"/>
         <font id="ps${order.orderId }" style="font-weight: bold;" class="productionState${order.productionState}">
         ${productionState==1?'未制作':'' } 
          ${productionState==2?'制作中':'' } 
         
         </font>
        </div>
        </c:if>
       </td> 
     
      <c:if test="${os.count==trade.count}">
       <td colspan="3" align="left" style="color: black;background: ${ts.index%2==0?'#FF9':'white' }" >
       <div style="max-width:200px;word-break:break-all;">
        备注：${order.memo }
        </div>
      </td>
       <td colspan="2" align="left" style="color: black;background: ${ts.index%2==0?'#FF9':'white' }" >
        买家留言：${order.orderContent }
       </td>
       </c:if>
       </tr>
       </c:if>   
       </c:forEach>
       </c:forEach>  
             </table>  
             </div>                       
 
       	<div id="dio" style="display: none;">
      		<textarea id="liyou" rows="10" cols="20" onkeyup="gaibian()"></textarea><br>
      		<input type="button" value="确定"  disabled="disabled" id="queding" onclick="quehuo()">
	    </div>    
        <div id="fandio" style="display:none;">
      		<textarea id="yuanyin" rows="10" cols="20" onkeyup="gaianniu()"></textarea><br>
      		<input type="button" value="确定" disabled="disabled" id="que" onclick="fankui()">
       </div>
       <div id="ordernumberdiv" style="display: none;">
       			<table>
       						<tr>
       								<td>快递编号：</td>
       								<td><input type="text" id="ordernumbertext"  size="30"></td>
       								</tr>
       								<tr>
       								<td>
       								快递公司：<select id="company_code">
       								<option value="SF">顺丰速运</option>
       								<option value="EMS">EMS</option>
       								<option value="YTO">圆通速递</option>
       								<option value="POST">中国邮政平邮</option>
       								<option value="ZTO">中通速递</option>
       								<option value="YUNDA">韵达快运</option>
       								<option value="BEST">百世物流</option>
       								<option value="DBL">德邦物流</option>
       								<option value="STO">申通E物流</option>
       								</select>
       								</td>
       								</tr>
       					
       			</table>
       </div>
       <div id="sync" style="display: none;">
		
       </div>
       <div id="print" style="display:none;">
       <div style="background-image: url(images/EMS.jpg);height:373px;background-repeat:no-repeat;margin-top:30px;margin-left:30px;" id="EMS">
    		   
       </div>
       </div>
        <div style="margin-left: 350px; margin-top: 50px">
        共有订单<font color=red>${total }</font>条
				<a href="selectindusOrderById?page=1"> 首页</a>&lt;
				<a href="selectindusOrderById?page=${page-1}"
					onclick="kai(${pagenow})">上一页</a>
				<strong>第${page}页/共${pagecount}页</strong>
				<a href="selectindusOrderById?page=${page+1}"
					onclick="zui(${pagenow},${pagecount})"> 下一页</a>&gt;
				<a href="selectindusOrderById?page=${pagecount}">末页</a>&gt;&gt;
				<font size="2" color="red" id="zuihou"></font>
			</div>

		<div
			style="width: 980px; height: 0px; background: #EEE; margin: 0 auto;"></div>
		<a name="gobottom">&nbsp;</a>
		<div class="go">
			<a title="返回顶部" class="top" href="selectindusOrderById#gotop"></a>
			<a title="刷新" class="refresh" href="javascript:void()" onclick="location.reload()"></a>
			<a title="返回底部" class="bottom" href="selectindusOrderById#gobottom"></a>
		</div>
	</body>
</html>
